package com.wgy.day14.ArrayList集合;

import java.util.ArrayList;

/**
 * Created by pc on 2020/11/9 22:24
 * Description: LearningJava
 */
public class Demo04ArrayListEach {
    public static void main(String[] args) {
        ArrayList<String > list= new ArrayList<>();
        list.add("迪丽热巴");
        list.add("古力娜扎");
        list.add("热依拉");
        list.add("马尔扎哈");
        System.out.println(list);
        System.out.println("===========");//[迪丽热巴, 古力娜扎, 热依拉, 马尔扎哈]


        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));

        }
    }
}
